package FIT::eg::Fixture::FixtureArgsTest;

use FIT::Class;
use FIT::Document::Transformer;

extends 'FIT::Fixture::Base';

augment do_cell => sub {
	my $cell  = shift;
	my $index = $cell->column_index;
	my @args  = $self->args;
    my $arg   = $args[$index - 1]; # 1st cell skipped, so cells will align
    my $text  = $cell->fit_text;

    transform {
        !$index       ? Void:
        $index > @args? Skip:
        $text eq $arg ? Right:
                        Wrong actual was $arg;
    } $cell;
};

